<template>
  <div id="main"
       class="personalMain">
    <!--  -->
    <div class="haed greenBG">
      <img class="logo"
           src="/static/image/site3.png"
           mode="aspectFit">
      <div class="gif greenBG">
        <!-- <img src="https://raw.githubusercontent.com/weilanwl/ColorUI/master/demo/images/wave.gif"> -->
      </div>
      <div class="tip whiteBG shadow-warp">
        <span class="gray-drak">稍等一下 马上就好</span>
      </div>
    </div>
    <!-- 操作菜单 -->
    <div class="menuBox">
      <!-- 收藏异常 -->
      <div class="menu whiteBG bottom-white-light"
           @click="fixColl">
        <div class="left">
          <i class="alifont gray-drak">&#xe83e;</i>
          <span class="gray-drak">收藏异常点这！</span>
        </div>
        <div class="right">
          <i class="alifont gray-drak rightRow">&#xe7dc;</i>
        </div>
      </div>
      <!-- 关于 -->
      <div class="menu whiteBG"
           @click="showAbout">
        <div class="left">
          <i class="alifont gray-drak">&#xe82d;</i>
          <span class="gray-drak">关于</span>
        </div>
        <div class="right">
          <i class="alifont gray-drak rightRow">&#xe7dc;</i>
        </div>
      </div>
      <!--  -->
    </div>
    <!--  -->
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },
  onLoad () {

  },
  methods: {
    // 
    async fixColl () {
      uni.showLoading({
        title: '自动修复中'
      });
      await uni.clearStorageSync();
      uni.showToast({
        title: '修复成功',
        icon: "success",
        duration: 2000
      });
    },
    // 
    async showAbout () {
      uni.showToast({
        title: '没啥好说的',
        icon: "none",
        duration: 2000
      });
    }
  }
}
</script>

<style lang="less">
.personalMain {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  .haed {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    .logo {
      transform: scale(1.1);
      height: 240rpx;
      width: 250rpx;
    }
    span {
      font-weight: bold;
      font-size: 30rpx;
    }
    .gif {
      height: 100rpx;
      width: 100%;
      img {
        height: 100%;
        width: 100%;
        mix-blend-mode: screen;
      }
    }
    .tip {
      width: 100%;
      padding: 32rpx 0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: none !important;
    }
  }
  .menuBox {
    margin-top: 70rpx;
    width: 92%;
    border-radius: 12rpx;
    overflow: hidden;
    .menu {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 30rpx 20rpx 30rpx 30rpx;
      & > div {
        display: flex;
        align-items: center;
      }
    }
    .left {
      i {
        font-size: 38rpx;
        height: 38rpx;
        margin-right: 10rpx;
      }
    }
    .right {
    }
    span {
      font-size: 30rpx;
    }
    .rightRow {
    }
  }
}
</style>

